package com.ljfresh.customer.result;

import com.ljfresh.customer.data.OrderDetailsData;
import com.ljfresh.customer.exception.ErrorMap;
import com.ljfresh.customer.pojo.ChatRecord;
import com.ljfresh.customer.pojo.WorkOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: Lucifer
 * @time: 2020/4/6-15:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("工单详情")
public class OrderDetailsResult extends Result{

    @ApiModelProperty("工单详情数据")
    private OrderDetailsData data;

    public OrderDetailsResult(Integer code){
        this.code = code;
        this.message = ErrorMap.map.get(code);
    }
}
